package cn.zdm.gateway.filter;

import org.springframework.cloud.gateway.filter.GatewayFilterChain;
import org.springframework.cloud.gateway.filter.GlobalFilter;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

/**
 * copyright (C), 2020, 北京同创永益科技发展有限公司
 *
 * @author ZhaoDeman
 * @version 1.0.0
 * <author>                <time>                  <version>                   <description>
 * ZhaoDeman        2020/12/31 14:22                 1.0
 * @program gateway
 * @description 网关过滤器，所有请求入口的过滤器
 * @create 2020/12/31 14:22
 */
@Configuration
public class GatewayFilter implements GlobalFilter {

    /**
     *
     * @param exchange 网关上下文信息
     * @param chain 过滤链
     * @return Mono<Void>
     */
    @Override
    public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {
        return null;
    }
}
